/* Container */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f9f9f9;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Status Bar */
.statusBar {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  font-weight: 500;
}

/* Header */
.header {
  background-color: #a0b568;
  height: 180px;
  border-radius: 0 0 50% 50% / 0 0 35% 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  flex-wrap: wrap;
  width: 40px;
  height: 40px;
  justify-content: space-between;
}

.logoDot {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  margin: 2px;
}

/* Content */
.content {
  flex: 1;
  padding: 0 24px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding-bottom: 80px; /* 增加底部内边距，为底部链接留出空间 */
}

.title {
  font-size: 26px;
  font-weight: 700;
  color: #5a3c1e;
  margin: 30px 0;
  text-align: center;
}

/* Form */
.formGroup {
  margin-bottom: 20px;
}

.formGroup label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  font-weight: normal;
}

.inputContainer {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  background-color: white;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.inputIcon {
  position: absolute;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.inputContainer input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: none;
  font-size: 16px;
  background-color: transparent;
}

.inputContainer input:focus {
  outline: none;
}

.togglePassword {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Verification Code */
.codeContainer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.codeButton {
  padding: 0 15px;
  height: 50px;
  background-color: #a0b568;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  min-width: 120px;
  transition: background-color 0.3s;
}

.codeButton:hover {
  background-color: #8ca057;
}

.codeButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Error message */
.errorMessage {
  margin-top: 8px;
  padding: 15px;
  border-radius: 25px;
  background-color: #ffebeb;
  border: 1px solid #ffcccc;
  color: #e53935;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.errorIcon {
  margin-right: 8px;
  font-size: 16px;
}

/* Register Button */
.registerButton {
  width: 100%;
  padding: 15px;
  background-color: #5a3c1e;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  letter-spacing: 1px;
  transition: background-color 0.3s;
}

.registerButton:hover {
  background-color: #4a3218;
}

.registerButton:disabled {
  background-color: #a08b78;
  cursor: not-allowed;
}

.arrow {
  margin-left: 8px;
  font-size: 18px;
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
}

.footer p {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.loginLink {
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

/* 错误状态样式 */
.hasError .inputContainer {
  border-color: #ffb6c1;
}

/* 发送中状态的样式 */
.sending {
    background-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* 提交中状态的样式 */
.submitting {
    opacity: 0.8;
    cursor: not-allowed;
}

/* 重试提示样式 */
.retryTip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #ff9800;
}

.successCard {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    padding: 18px 28px;
    margin: 0 auto 18px auto;
    max-width: 340px;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}
.successIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.successText {
    color: #222;
    font-size: 17px;
    font-weight: 500;
} 